import React, { PureComponent } from 'react';
import {
    View,
    ActivityIndicator,
} from 'react-native'

import Style from '../utils/style/style';
import WXStyle from '../utils/style/wxstyle';
export default class Loading extends PureComponent {
    constructor(props) {
        super(props)
    }
    render() {
        return (
            <View style={{ flex: 1 }}>
                <ActivityIndicator style={Style.centered} color={this.props.color?this.props.color:WXStyle.mainColor} />
            </View>
        )
    }
}